package com.gegao.decorator;

import com.gegao.decorator.entity.BigTrouser;
import com.gegao.decorator.entity.Person;
import com.gegao.decorator.entity.TShirts;

/**
 * Created by zhangzhanzhong on 2015/12/28.
 */
public class Main {
    public static void main(String[] args) {
        Person xc = new Person("哈哈");

        TShirts tShirts = new TShirts();
        BigTrouser bigTrouser = new BigTrouser();

        tShirts.decorate(xc);
        bigTrouser.decorate(tShirts);

        bigTrouser.show();
    }
}
